import axios from "axios";

const http = axios.create({
  baseURL: process.env["VUE_APP_BASE_API"],
  timeout: 3000
});

http.interceptors.request.use(config => {
  console.log(process.env["VUE_APP_BASE_API"])
  return config;
});

http.interceptors.response.use(res => {
  if (res.status === 200) return res.data;
});

export default http;
